﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Web;

namespace d1Project.Tools
{
    //文本处理工具
    public static class ExceptionHelper
    {
        //--------------------------------------------------------------------
        //md5
        public static string GetDetailDesc(Exception _err)
        {
            StringBuilder _strB = new StringBuilder();
            _strB.Append(_err.Message + "\n");
            Exception _childErr = _err.InnerException;
            while (_childErr != null)
            {
                _strB.Append(_childErr.Message + "\n");
            }
            _strB.Append(_childErr.StackTrace);
            return _strB.ToString();
        }

    }
}